import request from "@/utils/request";

export default {
  getPageList(page, limit, searchObj) {
    return request({
      url: `/eduservice/course/${page}/${limit}`,
      method: "post",
      data: searchObj
    });
  },
  // 获取查询所有分类科目
  getNestedTreeList2() {
    return request({
      url: `/eduservice/edusubject/getsubject`,
      method: "get"
    });
  },
  //查询课程的详细信息
  getById(courseId) {
    return request({
      url: `/eduservice/course/courseinfo/${courseId}`,
      method: "post"
    });
  }
};
